<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:p="http://primefaces.prime.com.tr/ui"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:f="http://java.sun.com/jsf/core">

<h:head>
	<meta http-equiv="Content-Language" content="PT-BR" />
	<link type="text/css" rel="stylesheet"
		href="#{request.contextPath}/resources/skin/#{preferenciaUsuario.theme}/skin.css" />
	<title>Maciel Quality Suite</title>
	<style>
		html,body {
			height: 100%;
		}
		body {
			margin: 0;
			padding: 0;
		}
		#tudo {
			width: 100%;
			position: relative; /*Contexto de posicionamento */
			margin: 0 auto;
		}
		* html #tudo {
			height: 100%;
		}
		.ui-growl {
			top: 35px;
		}
		#menu {
			margin: 0;
			padding: 0;
		}
		#topo {
			padding: 0;
			height: 41px;
			margin: 0 auto;
			background-image: url(#{request.contextPath}/resources/skin/#{preferenciaUsuario.theme}/topo.jpg);
			text-align: right;
		}
		#Separator {
			padding: 0;
			height: 4px;
			margin: 0 auto;
		}
		#menu {
			margin: 0 auto;
			padding: 0;
			height: 40px;
		}
		.wrapper {
			min-height: 100%;
			height: auto !important;
			height: 100%;
			margin: 0 auto -25px; /* the bottom margin is the negative value of the footer's height */
		}
		.footer, .push {
			height: 23px; /* .push must be the same height as .footer */
		}
		.copyright{
			margin:0;
			padding: 5px;
			text-align: center;
		}
	</style>
</h:head>

<h:body>
	<div id="modais">
	   <ui:insert name="modais">
	   </ui:insert>
	</div>


	<div class="wrapper"> 
	
		<div id="topo">
			<span class="ui-widget ui-widget-header">Bem vindo #{sessaoMBean.usuarioLogado}</span>
		</div>
		
		<div class="ui-widget ui-widget-header">
			<div id="Separator"></div>
		</div>
		
		<div id="menu">
			<ui:insert name="menu">
				<ui:include src="menu.xhtml" />
			</ui:insert>
		</div>
				
		<div id="conteudo" class="conteudo">	
			<ui:insert name="conteudo">	</ui:insert>
		</div>

		<h:form id="messageGrowl">
			<p:growl id="growl" showDetail="true" />
		</h:form>
		
	    <h:form>

              <p:idleMonitor timeout="480000"  idleListener="#{sessaoMBean.idleMonitor}"/>

         </h:form>
		
		<div class="push"></div>
	</div>
	
	<div  class="footer ui-widget ui-widget-header ui-corner-all" >
		<p class="copyright">&copy;&nbsp;&nbsp;2011 &nbsp;&bull;&nbsp;
			Maciel Quality Suite - Projeto de Conclusão de Curso - FAESP</p>
	</div>
</h:body>
</html>
